<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="utf-8">
	<meta name="author" content="uames">
	<meta name="description" content="practice some js">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title></title>
</head>
<body>
  <div id="content">
    <button id="openTypical">动态打字特效</button>
    <div id="typicalContent"></div>
  </div>
  <script type="module">
    document.querySelector('#openTypical').addEventListener('click', async function(){
      const {type, type:loop} = await import('./lib/typical.js')
      const steps = ["Ready", 1000, 'Set', 1000, 'Go', 1000];
      type(document.querySelector('#typicalContent'), ...steps, loop);
    }, {once: true});
  </script>
</body>
</html>